package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceBindingTableMapper;
import com.ruoyi.system.domain.DeviceBindingTable;
import com.ruoyi.system.service.IDeviceBindingTableService;

/**
 * 产品Service业务层处理
 * //20250213 云计算-智能车联-04-数据统计
 * @author 刘进祥
 * @date 2025-02-13
 */
@Service
public class DeviceBindingTableServiceImpl implements IDeviceBindingTableService 
{
    @Autowired
    private DeviceBindingTableMapper deviceBindingTableMapper;

    /**
     * 查询产品
     * 
     * @param id 产品主键
     * @return 产品
     */
    @Override
    public DeviceBindingTable selectDeviceBindingTableById(Long id)
    {
        return deviceBindingTableMapper.selectDeviceBindingTableById(id);
    }

    /**
     * 查询产品列表
     * 
     * @param deviceBindingTable 产品
     * @return 产品
     */
    @Override
    public List<DeviceBindingTable> selectDeviceBindingTableList(DeviceBindingTable deviceBindingTable)
    {
        return deviceBindingTableMapper.selectDeviceBindingTableList(deviceBindingTable);
    }

    /**
     * 新增产品
     * 
     * @param deviceBindingTable 产品
     * @return 结果
     */
    @Override
    public int insertDeviceBindingTable(DeviceBindingTable deviceBindingTable)
    {
        return deviceBindingTableMapper.insertDeviceBindingTable(deviceBindingTable);
    }

    /**
     * 修改产品
     * 
     * @param deviceBindingTable 产品
     * @return 结果
     */
    @Override
    public int updateDeviceBindingTable(DeviceBindingTable deviceBindingTable)
    {
        return deviceBindingTableMapper.updateDeviceBindingTable(deviceBindingTable);
    }

    /**
     * 批量删除产品
     * 
     * @param ids 需要删除的产品主键
     * @return 结果
     */
    @Override
    public int deleteDeviceBindingTableByIds(Long[] ids)
    {
        return deviceBindingTableMapper.deleteDeviceBindingTableByIds(ids);
    }

    /**
     * 删除产品信息
     * 
     * @param id 产品主键
     * @return 结果
     */
    @Override
    public int deleteDeviceBindingTableById(Long id)
    {
        return deviceBindingTableMapper.deleteDeviceBindingTableById(id);
    }
}
